package org.example.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.example.springcloud.utils.ResultVOUtil;
import org.example.springcloud.vo.ResultVO;

/**
 * @Description:
 * @Author: y
 * @CreateDate: 7/28/21 4:12 PM
 * @Version: 1.0
 */
public class CustomerBlockHandler {

    public static ResultVO handleException1(BlockException exception) {
        return ResultVOUtil.success(2020, " 自定义限流处理信息 ....CustomerBlockHandler handleException1");
    }

    public static ResultVO handleException2(BlockException exception) {
        return ResultVOUtil.success(2020, " 自定义限流处理信息 ....CustomerBlockHandler handleException2");
    }
}